<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SkyGameEngine2d: SkyEngine2d::GameWorld类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="shpe.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SkyGameEngine2d
   &#160;<span id="projectnumber">1.0.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>SkyEngine2d</b></li><li class="navelem"><a class="el" href="class_sky_engine2d_1_1_game_world.html">GameWorld</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="#friends">友元</a> &#124;
<a href="class_sky_engine2d_1_1_game_world-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">SkyEngine2d::GameWorld类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>游戏世界  
 <a href="class_sky_engine2d_1_1_game_world.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_game_world_8h_source.html">GameWorld.h</a>&gt;</code></p>
<div class="dynheader">
类 SkyEngine2d::GameWorld 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_sky_engine2d_1_1_game_world.png" usemap="#SkyEngine2d::GameWorld_map" alt=""/>
  <map id="SkyEngine2d::GameWorld_map" name="SkyEngine2d::GameWorld_map">
<area href="class_sky_engine2d_1_1_singleton.html" alt="SkyEngine2d::Singleton&lt; GameWorld, false &gt;" shape="rect" coords="0,56,269,80"/>
<area href="class_sky_engine2d_1_1_non_copyable.html" title="不可拷贝对象的基类" alt="SkyEngine2d::NonCopyable" shape="rect" coords="0,0,269,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:a1e9f3a22d7f795d7b9e321270c355125"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_game_world.html#a1e9f3a22d7f795d7b9e321270c355125">EngineState</a> { <a class="el" href="class_sky_engine2d_1_1_game_world.html#a1e9f3a22d7f795d7b9e321270c355125a75101dcdfc88455bcafc9e53e0b06689">EngineState::running</a>, 
<a class="el" href="class_sky_engine2d_1_1_game_world.html#a1e9f3a22d7f795d7b9e321270c355125aec1b81965109165de6b38cd92c1e39f9">EngineState::pause</a>, 
<a class="el" href="class_sky_engine2d_1_1_game_world.html#a1e9f3a22d7f795d7b9e321270c355125afb14982288108e1fbd6207ef55f05027">EngineState::destroy</a>
 }</td></tr>
<tr class="separator:a1e9f3a22d7f795d7b9e321270c355125"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ac25a967309f037fb39d6821adea16349"><td class="memItemLeft" align="right" valign="top"><a id="ac25a967309f037fb39d6821adea16349"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_game_world.html#ac25a967309f037fb39d6821adea16349">~GameWorld</a> ()</td></tr>
<tr class="memdesc:ac25a967309f037fb39d6821adea16349"><td class="mdescLeft">&#160;</td><td class="mdescRight">析构 <br /></td></tr>
<tr class="separator:ac25a967309f037fb39d6821adea16349"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93d11e270bd7002b5b1122edeba1740d"><td class="memItemLeft" align="right" valign="top"><a id="a93d11e270bd7002b5b1122edeba1740d"></a>
const <a class="el" href="class_sky_engine2d_1_1_game_world.html#a1e9f3a22d7f795d7b9e321270c355125">EngineState</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_game_world.html#a93d11e270bd7002b5b1122edeba1740d">getWorldState</a> () const</td></tr>
<tr class="memdesc:a93d11e270bd7002b5b1122edeba1740d"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取引擎状态 <br /></td></tr>
<tr class="separator:a93d11e270bd7002b5b1122edeba1740d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9199835960dcd8265ae6e8e9be473591"><td class="memItemLeft" align="right" valign="top"><a id="a9199835960dcd8265ae6e8e9be473591"></a>
<a class="el" href="class_sky_engine2d_1_1_i_application_view.html">IApplicationView</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_game_world.html#a9199835960dcd8265ae6e8e9be473591">getAppView</a> () const</td></tr>
<tr class="memdesc:a9199835960dcd8265ae6e8e9be473591"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取程序视图接口 <br /></td></tr>
<tr class="separator:a9199835960dcd8265ae6e8e9be473591"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a184d97c04aac932a36035783ed7aac97"><td class="memItemLeft" align="right" valign="top"><a id="a184d97c04aac932a36035783ed7aac97"></a>
<a class="el" href="class_sky_engine2d_1_1_texture_cache.html">TextureCache</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_game_world.html#a184d97c04aac932a36035783ed7aac97">getTextureCache</a> () const</td></tr>
<tr class="memdesc:a184d97c04aac932a36035783ed7aac97"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取纹理缓存 <br /></td></tr>
<tr class="separator:a184d97c04aac932a36035783ed7aac97"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c9bd56eeced0aadb9125551fa66c2d2"><td class="memItemLeft" align="right" valign="top"><a id="a3c9bd56eeced0aadb9125551fa66c2d2"></a>
<a class="el" href="class_sky_engine2d_1_1_i_direct_render.html">IDirectRender</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_game_world.html#a3c9bd56eeced0aadb9125551fa66c2d2">getDirectInterface</a> () const</td></tr>
<tr class="memdesc:a3c9bd56eeced0aadb9125551fa66c2d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取D3d接口 <br /></td></tr>
<tr class="separator:a3c9bd56eeced0aadb9125551fa66c2d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a110b40081121213af74f530502c86864"><td class="memItemLeft" align="right" valign="top"><a id="a110b40081121213af74f530502c86864"></a>
<a class="el" href="class_sky_engine2d_1_1_i_render.html">IRender</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_game_world.html#a110b40081121213af74f530502c86864">getRenderInterface</a> () const</td></tr>
<tr class="memdesc:a110b40081121213af74f530502c86864"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取渲染接口 <br /></td></tr>
<tr class="separator:a110b40081121213af74f530502c86864"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5018d7f5b844ed624355c74e75f2f31"><td class="memItemLeft" align="right" valign="top"><a id="ab5018d7f5b844ed624355c74e75f2f31"></a>
<a class="el" href="class_sky_engine2d_1_1_application.html">Application</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_game_world.html#ab5018d7f5b844ed624355c74e75f2f31">getApplication</a> () const</td></tr>
<tr class="memdesc:ab5018d7f5b844ed624355c74e75f2f31"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取应用程序实例 <br /></td></tr>
<tr class="separator:ab5018d7f5b844ed624355c74e75f2f31"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a66dea8ba9a2e1c89788651781bebf0"><td class="memItemLeft" align="right" valign="top"><a id="a2a66dea8ba9a2e1c89788651781bebf0"></a>
<a class="el" href="class_sky_engine2d_1_1_scheduler.html">Scheduler</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_game_world.html#a2a66dea8ba9a2e1c89788651781bebf0">getScheduler</a> () const</td></tr>
<tr class="memdesc:a2a66dea8ba9a2e1c89788651781bebf0"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取调度器 <br /></td></tr>
<tr class="separator:a2a66dea8ba9a2e1c89788651781bebf0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c2cd6a8c8d46ca61db6b87700c00b9e"><td class="memItemLeft" align="right" valign="top"><a id="a8c2cd6a8c8d46ca61db6b87700c00b9e"></a>
<a class="el" href="class_sky_engine2d_1_1_action_manager.html">ActionManager</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_game_world.html#a8c2cd6a8c8d46ca61db6b87700c00b9e">getActionManger</a> () const</td></tr>
<tr class="memdesc:a8c2cd6a8c8d46ca61db6b87700c00b9e"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取动画管理器 <br /></td></tr>
<tr class="separator:a8c2cd6a8c8d46ca61db6b87700c00b9e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7b7fe02280a09e9133f6fef697fd485"><td class="memItemLeft" align="right" valign="top"><a id="ac7b7fe02280a09e9133f6fef697fd485"></a>
<a class="el" href="class_sky_engine2d_1_1_ui_core.html">UiCore</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_game_world.html#ac7b7fe02280a09e9133f6fef697fd485">getUiCore</a> () const</td></tr>
<tr class="memdesc:ac7b7fe02280a09e9133f6fef697fd485"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取uiCore <br /></td></tr>
<tr class="separator:ac7b7fe02280a09e9133f6fef697fd485"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e77a56bcecdfc34025d1572e9f18a59"><td class="memItemLeft" align="right" valign="top"><a id="a7e77a56bcecdfc34025d1572e9f18a59"></a>
<a class="el" href="class_sky_engine2d_1_1_audio_manager.html">AudioManager</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_game_world.html#a7e77a56bcecdfc34025d1572e9f18a59">getAudioManager</a> () const</td></tr>
<tr class="memdesc:a7e77a56bcecdfc34025d1572e9f18a59"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取音频管理器 <br /></td></tr>
<tr class="separator:a7e77a56bcecdfc34025d1572e9f18a59"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef1944ac111f5b7a511cadbc5ea82a2d"><td class="memItemLeft" align="right" valign="top"><a id="aef1944ac111f5b7a511cadbc5ea82a2d"></a>
<a class="el" href="class_sky_engine2d_1_1_sprite_frame_cache.html">SpriteFrameCache</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_game_world.html#aef1944ac111f5b7a511cadbc5ea82a2d">getDefultSpriteFrameCache</a> () const</td></tr>
<tr class="memdesc:aef1944ac111f5b7a511cadbc5ea82a2d"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取默认的精灵帧缓存 <br /></td></tr>
<tr class="separator:aef1944ac111f5b7a511cadbc5ea82a2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac847f513e6d0ed5d8c25a555f202071a"><td class="memItemLeft" align="right" valign="top"><a id="ac847f513e6d0ed5d8c25a555f202071a"></a>
<a class="el" href="class_sky_engine2d_1_1_event_manager.html">EventManager</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_game_world.html#ac847f513e6d0ed5d8c25a555f202071a">getEventManager</a> () const</td></tr>
<tr class="memdesc:ac847f513e6d0ed5d8c25a555f202071a"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取事件管理器 <br /></td></tr>
<tr class="separator:ac847f513e6d0ed5d8c25a555f202071a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d392935f7f38c61d5cc6612a344f87a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_game_world.html#a9d392935f7f38c61d5cc6612a344f87a">pushScene</a> (const std::shared_ptr&lt; <a class="el" href="class_sky_engine2d_1_1_scene.html">Scene</a> &gt; &amp;scene)</td></tr>
<tr class="memdesc:a9d392935f7f38c61d5cc6612a344f87a"><td class="mdescLeft">&#160;</td><td class="mdescRight">压入场景  <a href="#a9d392935f7f38c61d5cc6612a344f87a">更多...</a><br /></td></tr>
<tr class="separator:a9d392935f7f38c61d5cc6612a344f87a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af035651d1b0079d537c2b2bf9210395b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_game_world.html#af035651d1b0079d537c2b2bf9210395b">popScene</a> ()</td></tr>
<tr class="memdesc:af035651d1b0079d537c2b2bf9210395b"><td class="mdescLeft">&#160;</td><td class="mdescRight">弹出一个场景  <a href="#af035651d1b0079d537c2b2bf9210395b">更多...</a><br /></td></tr>
<tr class="separator:af035651d1b0079d537c2b2bf9210395b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4df5f31dda3c29642785374f3f77768e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_game_world.html#a4df5f31dda3c29642785374f3f77768e">replaceScene</a> (const std::shared_ptr&lt; <a class="el" href="class_sky_engine2d_1_1_scene.html">Scene</a> &gt; &amp;scene)</td></tr>
<tr class="memdesc:a4df5f31dda3c29642785374f3f77768e"><td class="mdescLeft">&#160;</td><td class="mdescRight">替换当前在运行的场景  <a href="#a4df5f31dda3c29642785374f3f77768e">更多...</a><br /></td></tr>
<tr class="separator:a4df5f31dda3c29642785374f3f77768e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1e40816549824c6450ee53d8486d4a0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_sky_engine2d_1_1_scene.html">Scene</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_game_world.html#aa1e40816549824c6450ee53d8486d4a0">getRunningScene</a> () const</td></tr>
<tr class="memdesc:aa1e40816549824c6450ee53d8486d4a0"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取当前正在运行的场景  <a href="#aa1e40816549824c6450ee53d8486d4a0">更多...</a><br /></td></tr>
<tr class="separator:aa1e40816549824c6450ee53d8486d4a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a55e2a1856d24f399620081ba7d47585b"><td class="memItemLeft" align="right" valign="top"><a id="a55e2a1856d24f399620081ba7d47585b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_game_world.html#a55e2a1856d24f399620081ba7d47585b">start</a> ()</td></tr>
<tr class="memdesc:a55e2a1856d24f399620081ba7d47585b"><td class="mdescLeft">&#160;</td><td class="mdescRight">开始运行世界 <br /></td></tr>
<tr class="separator:a55e2a1856d24f399620081ba7d47585b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8b43ed5342c4d5c5ce500db3177517d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_game_world.html#ad8b43ed5342c4d5c5ce500db3177517d">setTimeScale</a> (float scale)</td></tr>
<tr class="memdesc:ad8b43ed5342c4d5c5ce500db3177517d"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置时间缩放  <a href="#ad8b43ed5342c4d5c5ce500db3177517d">更多...</a><br /></td></tr>
<tr class="separator:ad8b43ed5342c4d5c5ce500db3177517d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6476432b5567630479554fae78008e66"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_game_world.html#a6476432b5567630479554fae78008e66">getTimeScale</a> () const</td></tr>
<tr class="separator:a6476432b5567630479554fae78008e66"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2fccf0f09227d2f2139ef542869e008b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_game_world.html#a2fccf0f09227d2f2139ef542869e008b">openDebugConsole</a> ()</td></tr>
<tr class="memdesc:a2fccf0f09227d2f2139ef542869e008b"><td class="mdescLeft">&#160;</td><td class="mdescRight">打开控制台窗口，以显示调试信息  <a href="#a2fccf0f09227d2f2139ef542869e008b">更多...</a><br /></td></tr>
<tr class="separator:a2fccf0f09227d2f2139ef542869e008b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5a87c2ad8289c75e98609f1a8f1fb46"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_game_world.html#aa5a87c2ad8289c75e98609f1a8f1fb46">isDisplayRenderInfo</a> (bool display)</td></tr>
<tr class="memdesc:aa5a87c2ad8289c75e98609f1a8f1fb46"><td class="mdescLeft">&#160;</td><td class="mdescRight">是否显示渲染信息，引擎默认为不显示  <a href="#aa5a87c2ad8289c75e98609f1a8f1fb46">更多...</a><br /></td></tr>
<tr class="separator:aa5a87c2ad8289c75e98609f1a8f1fb46"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_sky_engine2d_1_1_non_copyable"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_sky_engine2d_1_1_non_copyable')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="class_sky_engine2d_1_1_non_copyable.html">SkyEngine2d::NonCopyable</a></td></tr>
<tr class="memitem:a570a18a8e326ce10a33915dffdc2b23e inherit pub_methods_class_sky_engine2d_1_1_non_copyable"><td class="memItemLeft" align="right" valign="top"><a id="a570a18a8e326ce10a33915dffdc2b23e"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>NonCopyable</b> (const <a class="el" href="class_sky_engine2d_1_1_non_copyable.html">NonCopyable</a> &amp;)=delete</td></tr>
<tr class="separator:a570a18a8e326ce10a33915dffdc2b23e inherit pub_methods_class_sky_engine2d_1_1_non_copyable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac21e0c7e1d6da8e9a27f6b6d8087e46a inherit pub_methods_class_sky_engine2d_1_1_non_copyable"><td class="memItemLeft" align="right" valign="top"><a id="ac21e0c7e1d6da8e9a27f6b6d8087e46a"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>NonCopyable</b> (<a class="el" href="class_sky_engine2d_1_1_non_copyable.html">NonCopyable</a> &amp;&amp;)=delete</td></tr>
<tr class="separator:ac21e0c7e1d6da8e9a27f6b6d8087e46a inherit pub_methods_class_sky_engine2d_1_1_non_copyable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9fdd4955d223d165a4fbe84f5c4690b5 inherit pub_methods_class_sky_engine2d_1_1_non_copyable"><td class="memItemLeft" align="right" valign="top"><a id="a9fdd4955d223d165a4fbe84f5c4690b5"></a>
<a class="el" href="class_sky_engine2d_1_1_non_copyable.html">NonCopyable</a>&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="class_sky_engine2d_1_1_non_copyable.html">NonCopyable</a> &amp;)=delete</td></tr>
<tr class="separator:a9fdd4955d223d165a4fbe84f5c4690b5 inherit pub_methods_class_sky_engine2d_1_1_non_copyable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1397ae519173378b37ad622d148be3b5 inherit pub_methods_class_sky_engine2d_1_1_non_copyable"><td class="memItemLeft" align="right" valign="top"><a id="a1397ae519173378b37ad622d148be3b5"></a>
<a class="el" href="class_sky_engine2d_1_1_non_copyable.html">NonCopyable</a>&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (<a class="el" href="class_sky_engine2d_1_1_non_copyable.html">NonCopyable</a> &amp;&amp;)=delete</td></tr>
<tr class="separator:a1397ae519173378b37ad622d148be3b5 inherit pub_methods_class_sky_engine2d_1_1_non_copyable"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:ad02609349663029976fca060b7ca2935"><td class="memItemLeft" align="right" valign="top"><a id="ad02609349663029976fca060b7ca2935"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_game_world.html#ad02609349663029976fca060b7ca2935">GameWorld</a> ()</td></tr>
<tr class="memdesc:ad02609349663029976fca060b7ca2935"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造 <br /></td></tr>
<tr class="separator:ad02609349663029976fca060b7ca2935"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab61d3194cb8d0bb48062c21015465f8a"><td class="memItemLeft" align="right" valign="top"><a id="ab61d3194cb8d0bb48062c21015465f8a"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_game_world.html#ab61d3194cb8d0bb48062c21015465f8a">drawScene</a> ()</td></tr>
<tr class="memdesc:ab61d3194cb8d0bb48062c21015465f8a"><td class="mdescLeft">&#160;</td><td class="mdescRight">渲染场景 <br /></td></tr>
<tr class="separator:ab61d3194cb8d0bb48062c21015465f8a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50bd4199393cd3a34f53921ef87e8925"><td class="memItemLeft" align="right" valign="top"><a id="a50bd4199393cd3a34f53921ef87e8925"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>renderScene</b> ()</td></tr>
<tr class="separator:a50bd4199393cd3a34f53921ef87e8925"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad9730f7f308355de653a6e376374091b"><td class="memItemLeft" align="right" valign="top"><a id="ad9730f7f308355de653a6e376374091b"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>init</b> (<a class="el" href="class_sky_engine2d_1_1_i_direct_render.html">IDirectRender</a> *d3d, <a class="el" href="class_sky_engine2d_1_1_i_render.html">IRender</a> *render, <a class="el" href="class_sky_engine2d_1_1_i_application_view.html">IApplicationView</a> *app_view, <a class="el" href="class_sky_engine2d_1_1_application.html">Application</a> *app)</td></tr>
<tr class="separator:ad9730f7f308355de653a6e376374091b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e18f416fcb6a68a396996d78444df3f"><td class="memItemLeft" align="right" valign="top"><a id="a8e18f416fcb6a68a396996d78444df3f"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>end</b> ()</td></tr>
<tr class="separator:a8e18f416fcb6a68a396996d78444df3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc789bd91c66d9a7f0d6ff9ed29fb2d0"><td class="memItemLeft" align="right" valign="top"><a id="abc789bd91c66d9a7f0d6ff9ed29fb2d0"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>mainLoop</b> (double dt)</td></tr>
<tr class="separator:abc789bd91c66d9a7f0d6ff9ed29fb2d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
友元</h2></td></tr>
<tr class="memitem:a23f25bcc02a0e94c2f5a4188496b04d0"><td class="memItemLeft" align="right" valign="top"><a id="a23f25bcc02a0e94c2f5a4188496b04d0"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>Application</b></td></tr>
<tr class="separator:a23f25bcc02a0e94c2f5a4188496b04d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
额外继承的成员函数</h2></td></tr>
<tr class="inherit_header pub_static_methods_class_sky_engine2d_1_1_singleton"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_class_sky_engine2d_1_1_singleton')"><img src="closed.png" alt="-"/>&#160;静态 Public 成员函数 继承自 <a class="el" href="class_sky_engine2d_1_1_singleton.html">SkyEngine2d::Singleton&lt; GameWorld, false &gt;</a></td></tr>
<tr class="memitem:a0cc2c840da44a8cb0784ae398215f921 inherit pub_static_methods_class_sky_engine2d_1_1_singleton"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_sky_engine2d_1_1_game_world.html">GameWorld</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_singleton.html#a0cc2c840da44a8cb0784ae398215f921">getInstance</a> ()</td></tr>
<tr class="memdesc:a0cc2c840da44a8cb0784ae398215f921 inherit pub_static_methods_class_sky_engine2d_1_1_singleton"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取单例对象的实例  <a href="class_sky_engine2d_1_1_singleton.html#a0cc2c840da44a8cb0784ae398215f921">更多...</a><br /></td></tr>
<tr class="separator:a0cc2c840da44a8cb0784ae398215f921 inherit pub_static_methods_class_sky_engine2d_1_1_singleton"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>游戏世界 </p>
<p>该类时引擎各个模块的中介者，也是游戏引擎的核心。可以通过该类获取其他各个模块的实例。 </p>
</div><h2 class="groupheader">成员枚举类型说明</h2>
<a id="a1e9f3a22d7f795d7b9e321270c355125"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1e9f3a22d7f795d7b9e321270c355125">&#9670;&nbsp;</a></span>EngineState</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="class_sky_engine2d_1_1_game_world.html#a1e9f3a22d7f795d7b9e321270c355125">SkyEngine2d::GameWorld::EngineState</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">strong</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">枚举值</th></tr><tr><td class="fieldname"><a id="a1e9f3a22d7f795d7b9e321270c355125a75101dcdfc88455bcafc9e53e0b06689"></a>running&#160;</td><td class="fielddoc"><p>运行 </p>
</td></tr>
<tr><td class="fieldname"><a id="a1e9f3a22d7f795d7b9e321270c355125aec1b81965109165de6b38cd92c1e39f9"></a>pause&#160;</td><td class="fielddoc"><p>暂停 </p>
</td></tr>
<tr><td class="fieldname"><a id="a1e9f3a22d7f795d7b9e321270c355125afb14982288108e1fbd6207ef55f05027"></a>destroy&#160;</td><td class="fielddoc"><p>销毁 </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="aa1e40816549824c6450ee53d8486d4a0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa1e40816549824c6450ee53d8486d4a0">&#9670;&nbsp;</a></span>getRunningScene()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_sky_engine2d_1_1_scene.html">Scene</a>* SkyEngine2d::GameWorld::getRunningScene </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取当前正在运行的场景 </p>
<dl class="section return"><dt>返回</dt><dd>Scene* </dd></dl>

</div>
</div>
<a id="a6476432b5567630479554fae78008e66"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6476432b5567630479554fae78008e66">&#9670;&nbsp;</a></span>getTimeScale()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">float SkyEngine2d::GameWorld::getTimeScale </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>float 获取当前的缩放系数 </dd></dl>

</div>
</div>
<a id="aa5a87c2ad8289c75e98609f1a8f1fb46"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa5a87c2ad8289c75e98609f1a8f1fb46">&#9670;&nbsp;</a></span>isDisplayRenderInfo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SkyEngine2d::GameWorld::isDisplayRenderInfo </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>display</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>是否显示渲染信息，引擎默认为不显示 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">bool</td><td>display </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="a2fccf0f09227d2f2139ef542869e008b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2fccf0f09227d2f2139ef542869e008b">&#9670;&nbsp;</a></span>openDebugConsole()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SkyEngine2d::GameWorld::openDebugConsole </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>打开控制台窗口，以显示调试信息 </p>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="af035651d1b0079d537c2b2bf9210395b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af035651d1b0079d537c2b2bf9210395b">&#9670;&nbsp;</a></span>popScene()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SkyEngine2d::GameWorld::popScene </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>弹出一个场景 </p>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="a9d392935f7f38c61d5cc6612a344f87a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9d392935f7f38c61d5cc6612a344f87a">&#9670;&nbsp;</a></span>pushScene()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SkyEngine2d::GameWorld::pushScene </td>
          <td>(</td>
          <td class="paramtype">const std::shared_ptr&lt; <a class="el" href="class_sky_engine2d_1_1_scene.html">Scene</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>scene</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>压入场景 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td>std::shared_ptr&lt;Scene&gt;&amp; scene 场景 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>bool </dd></dl>

</div>
</div>
<a id="a4df5f31dda3c29642785374f3f77768e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4df5f31dda3c29642785374f3f77768e">&#9670;&nbsp;</a></span>replaceScene()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SkyEngine2d::GameWorld::replaceScene </td>
          <td>(</td>
          <td class="paramtype">const std::shared_ptr&lt; <a class="el" href="class_sky_engine2d_1_1_scene.html">Scene</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>scene</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>替换当前在运行的场景 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td>std::shared_ptr&lt;Scene&gt; &amp; scene </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="ad8b43ed5342c4d5c5ce500db3177517d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad8b43ed5342c4d5c5ce500db3177517d">&#9670;&nbsp;</a></span>setTimeScale()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SkyEngine2d::GameWorld::setTimeScale </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>scale</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>设置时间缩放 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">float</td><td>scale 缩放系数 默认为 1 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/code/SkyGameEngine2d/src/base/<a class="el" href="_game_world_8h_source.html">GameWorld.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
